package com.pine.dcts.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pine.dcts.entity.Role;
import com.pine.dcts.query.RoleQuery;

import java.util.List;

public interface RoleService extends IService<Role> {

     List<String> getListByUserId(Integer userId);

     IPage<Role> selectPage(RoleQuery query);

     List<Role> getList();

     List<Integer> getRoleIdsByUserId(Integer userId);

     boolean validateRoleBind(Integer roleId);

     void deleteRoleBindByRoleId(Integer roleId);

     void deleteRoleBindByUserId(Integer userId);

     void bindRoleUser(Integer userId,Integer[] roleId);


}
